
<div>
    <table id="tablita">
        <thead>
            <th><?php echo "Fila / Columna" ?></th>
            <?php for ($c=0; $c<=$columnas; $c++) : ?>
            <th><?php echo "Columna ".$c ?></th>
            <?php endfor; ?>
        </thead>

        <tbody>
            <?php for ($f=0; $f<=$filas; $f++) : ?>
            <tr>
                <td>
                    <?php echo "Fila ". $f ?>
                </td>

                <?php for ($c=0; $c<=$columnas; $c++) : ?>
                <td>
                    <form id="<?php echo $f."_".$c ?>" name="<?php echo $f."_".$c ?>" action="<?php echo url_for("@default?module=dinamicform&action=receive") ?>" method="post">
                    <input type="hidden" id="doctor" name="var_doctor" value="<?php echo $f ?>" />
                    <input type="hidden" id="hora" name="var_hora" value="<?php echo $c ?>" />
                    <input type="submit" value="Reservar"/>
                    </form>
                </td>
                <?php endfor; ?>
            </tr>
            <?php endfor; ?>
        </tbody>
    </table>
</div>


<div id="respuesta_hidden">
    
</div>